

//鹰眼
function OverviewMap(){
    var over=
    {
        map:Map,
        attachTo:"bottom-right",
        color:"#000000",
        expandFactor:2,
        baseLayer:new esri.layers.ArcGISTiledMapServiceLayer(MapServer)
    };

    var MapViewer=new esri.dijit.OverviewMap(over,dojo.byId("OverviewDiv"));
    MapViewer.startup();
}

//比例尺
function Scalebar(){
    var scalebar=new esri.dijit.scalebar({map:Map,attachTo:"top-right"},
    dojo.byId("scaleBarDiv"));
}


//书签
//创建书签
function BookMarks(){
    Books=new esri.dijit.BookMarks({
        map:Map,
        editable:"true"
    },dojo.byId("bookmraks"))
}
//添加书签
function addBook(){
    var bookextend=Map.extent;
    var bookmarkItem=new esri.dijit.bookmarkItem({
        "extend":bookextend,
        "name":"北京"
    });
    Books.addBookmark(bookmarkItem);
}



//InfoWindow




//图例
function Maplegend(){
    var legendPar={map:Map,
        arrangment:esri.dijit.Legend.ALIGN_RIGHT,
        autoUpdate:true      
    };

    var legendDijit=new esri.dijit.Legend(legendPar,"legendDiv");
    legendDijit.startup();
}




//时间滑块

function SetSlider(){
    //时间滑块创建和设置
    timeSlider=new esri.dijit.TimeSlider({
        style:"width:800px;",
        id:'timeSlider'
    },dojo.byId("timeslider"));

    timeSlider.SetThumbCount(1);

    
}


